package pers.wangyuhang.demo1;

/**
 * Created with IntelliJ IDEA.
 * Desciption:继承性的学习
 * User: 15716
 * Date: 2021-12-22
 * Time: 19:58
 */
public class Person {

    String name;
    int age;

    public Person() {

    }

    public Person(String name,int age) {
        this.name = name;
        this.age = age;
    }

    public void eat() {
        System.out.println("人可以吃饭");
    }

    public void sleep() {
        System.out.println("人可以睡觉");
    }

}
